package com.awesome.designpatterndemo.proxy.proxy5;

import android.os.Binder;

import java.util.UUID;

/**
 * Author: zhangjingfang
 * Email:zhangjingfang@jeejio.com
 * Date: 2021/7/30 10:57 下午
 * Description:类描述
 */
public class BankBinder extends Binder implements IBank {
    @Override
    public String openAccount(String name, String pwd) {
        return name + "开户成功！账号为" + UUID.randomUUID().toString();
    }

    @Override
    public String saveMoney(int money, String account) {
        return "账户："+account+" 存入 "+money;
    }

    @Override
    public String takeMoney(int money, String account, String pwd) {
        return "账户："+account+" 支取 "+money;
    }

    @Override
    public String closeAccount(String account, String pwd) {
        return account+" 销户成功！ ";
    }
}